﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SanguoSharp.Server.Characters
{
    public sealed class 马超 : Character
    {
        public 马超(Player player)
            : base(player, CharacterType.马超)
        {
        }

        public override void PlayCard(Card card, CardResultMethod resultMethod)
        {
            CannotMiss = false;
            if (card.Type == CardType.杀)
            {
                Card c=Player.Game.GameTable.CheckDeck();
                if (c.Suit == CardSuit.方片 || c.Suit == CardSuit.红桃)
                    CannotMiss = true;
            }
        }

        public override int DistanceIn
        {
            get
            {
                return 1;
            }
        }
    }
}
